package com.ruoyi.system.domain.ingredients;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 辅料异常记录对象 part_ingredients_exception
 * 
 * @author ljx
 * @date 2020-07-01
 */
public class PartIngredientsException extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 辅料表id */
    @Excel(name = "辅料表id")
    private Long partId;

    /** 异常数量 */
    @Excel(name = "异常数量")
    private Long changeValue;

    /** 发现者 */
    @Excel(name = "发现者")
    private String discoverer;

    /** 发现者 */
    @Excel(name = "发现日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String findDate;

    @Excel(name = "异常辅料")
    private String name;

    @Excel(name = "子名称")
    private String subName;

    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDiscoverer() {
        return discoverer;
    }

    public void setDiscoverer(String discoverer) {
        this.discoverer = discoverer;
    }

    public String getFindDate() {
        return findDate;
    }

    public void setFindDate(String findDate) {
        this.findDate = findDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSubName() {
        return subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPartId(Long partId) 
    {
        this.partId = partId;
    }

    public Long getPartId() 
    {
        return partId;
    }
    public void setChangeValue(Long changeValue) 
    {
        this.changeValue = changeValue;
    }

    public Long getChangeValue() 
    {
        return changeValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("partId", getPartId())
            .append("changeValue", getChangeValue())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
